import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:wrench',
      order: -1,
      title: $t('page.maintenance.title'),
    },
    name: 'Maintenance',
    path: '/maintenance',
    children: [
      {
        name: 'Audit',
        path: '/maintenance/audit',
        component: () => import('#/views/maintenance/audit/index.vue'),
        meta: {
          icon: 'lucide:file-check',
          title: $t('page.maintenance.audit'),
        },
      },
      {
        name: 'AuditRecord',
        path: '/maintenance/auditRecord',
        component: () => import('#/views/maintenance/auditRecord/index.vue'),
        meta: {
          icon: 'lucide:list-check',
          title: $t('page.maintenance.auditRecord'),
        },
      },
    ],
  },
];

export default routes;
